Page ({
    onLoad: function(params) {
        wx.getStorage({
          key: 'ProductInfo',
          success: function(res){
              console.log(res);
              console.log(`http://ts1.magicmanufactory.com/c2mwebservice/api/v1/public/sizes/goods/${res.data.goodsId}`);
              wx.request({
              url: `http://www.magicmanufactory.com/c2mwebservice/api/v1/public/sizes/goods/${res.data.goodsId}`,
              data: {},
              method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
              // header: {}, // 设置请求的 header
              success: function(res){
                // success
              },
              fail: function() {
                // fail
              },
              complete: function() {
                // complete
              }
            })
          }
        })
    }
})
